//
//  SDTagTextField.m
//  SDEditTagsView
//
//  Created by shansander on 2017/7/27.
//  Copyright © 2017年 shansander. All rights reserved.
//

#import "SDTagTextField.h"

@implementation SDTagTextField

- (void)deleteBackward
{
    NSString * textContent = self.text;
    
    if ([textContent isEqualToString:@""]) {
        
        self.selectedDeleted = !self.selectedDeleted;
        
        if (self.deletedBlock) {
            self.deletedBlock(self);
        }
    }
    
   
    [super deleteBackward];
    
    
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
